package org.cuit.epoch.seon.base;

/**
 * @author Seon
 * @since 2024-08-30
 * @version 1.0
 */
public abstract class Animal {

    protected String name;

    protected final int count = 3;

    public Animal(String name) {
        this.name = name;
    }

    protected abstract String getShoutVoice();

    public void executeShout() {
        for (int i = 0; i < count; i++) {
            System.out.println(name + getShoutVoice());
        }
    }

}
